/** This program will calculate are of a circle & a squire
 *  All the class are included in com.examples package 
 */
package simple.example;

/**
 * This is the class which will contain methods to calculate area
 *
 */
public class CalculateArea 
{
	double Area = 0;
	// Calculate the area of a squire
	void CalculateSquareArea(int perimeter)
	{
		float length 	= (float)perimeter/4;
		Area			= length * length;
		System.out.println("Area of the squire is " + Area);
	}
	// Calculate the area of a squire
	void CalculateCircleArea(double perimeter)
	{
		double redious 	= perimeter/3.14;
		Area			= (redious * redious *3.14)/4.0;
		System.out.println("Area of the circle is " + Area);
	}
};

class Areacalculation
{
	public static void main(String args[])
	{
		CalculateArea square1 = new CalculateArea();
		CalculateArea circle1 = new CalculateArea();
		square1.CalculateSquareArea(32);
		circle1.CalculateCircleArea(78.5);
	}
}